﻿// Copyright (c) ZhangPeihang. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.ComponentModel;

namespace LaserMark.DataAccess.Models;

public class MarkTemplate
{
    /// <summary>
    /// 
    /// </summary>
    public int ID { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public string? TemplateName { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public string? TemplatePath { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public MarkType Type { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public bool Default { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public string? MatchingNo { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public int MarkPosition { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public int XMargin { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public int YMargin { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public bool Code { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public bool LightCode { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public string? Content { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public int Order { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public string? ReMark { get; set; }

    /// <summary>
    /// 
    /// </summary>
    public bool Graphics { get; set; }
}

public enum MarkType
{
    [Description("普通标志")]
    Text,

    [Description("二维码")]
    QRcode
}
